/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.mediator;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author xiay
 * @since 2020/12/13 10:23 下午
 */
public class President implements Mediator {

    private Map<String, Department> deptMap = new HashMap<>();

    @Override
    public void command(String dept) {
        deptMap.get(dept).selfAction();
    }

    @Override
    public void register(String dept, Department department) {
        deptMap.put(dept, department);
    }
}
